put one's finger s in the fire

自讨苦吃,因做某事而遭殃